﻿<cfsilent>
	<cfscript>
		
		event.setArg("pageTitle", "外语等级考试 - 网上报名 - 缴费方式");

		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");

		/* 学籍相关信息 */
		studentId = sessionAdvice.getAutherUserID();
		//studentClassId = sessionAdvice.getUserProp("studentClass");
		//studentSubjectId = sessionAdvice.getUserProp("studentSubject");
		//studentDirId = sessionAdvice.getUserProp("studentSubDir");
		studentGrade = sessionAdvice.getUserProp("studentGrade");
		studentDepartment = sessionAdvice.getUserProp("studentDepartment");

		currentTab = event.getArg("TabID", "labWizard");

		passArg = structNew();
		
		structInsert( passArg, "EX", event.getArg("EX"), true );
		structInsert( passArg, "ST", event.getArg("ST"), true );
		
		try {
		
			sign = event.getArg("ST");
			key = studentId & studentGrade & studentDepartment;
		
			cetTarget = decrypt(sign, key, "PBEWithMD5AndDES", "Hex");
			
		}
		catch ( any expt ) {
			cetTarget = "";
		}
		
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('DEFAULT_EVENT')#</cfoutput>"><i class="mrs img btnList"></i><span class="uiButtonText">外语等级考试</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 edit"></i>选择缴费方式
				</h2>
			</div>
		</div>
	</div>
</div>

<!--- 加载导航菜单 --->
<!-- stepMenu-->
<cfoutput>#event.getArg("stepMenu")#</cfoutput>
<!--/stepMenu-->

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="programCourse">

				<div id="Wizard" class="">

					<cfif cetTarget neq "" and cetTarget eq event.getArg("EX") >
					
							<div class="noticeBlock">
								<h3>确认报名费缴纳形式</h3>
								<hr/>
							</div>

							<cfset typeArray = ['Cash', 'BankInstead'] />
							
							<div class="clearfix">
								<ul class="UIDashBoard">
									<cfset i = 0 />
									<cfloop array="#typeArray#" index="typper">
										<cfset i++ />
										<li class="col2 <cfif i mod 2 eq 0>last</cfif>">
											<div class="board hasPic">
												<cfswitch expression="#typper#">
													<cfcase value="Cash">
														<cfset structInsert( passArg, "P", "Cash", true ) />
														<a href="<cfoutput>#buildURL('cetEntryWizardComplete', passArg)#</cfoutput>">
															<div class="pic">
																<span class="icon64x64 <cfoutput>#typper#</cfoutput>"></span>
															</div>
															<div class="content">
																<h5>现金缴费</h5>
																<p class="describ">您需要在规定时间内, 由您本人前往学校指定的四六级收费窗口办理. 缴纳报名费用现场打印发票.</p> 
																<p class="desc">一旦您错过缴费时间, 报名即做无效处理</p>
															</div>
														</a>
													</cfcase>
													<cfcase value="BankInstead">
														<cfset structInsert( passArg, "P", "BankInstead", true ) />
														<a href="<cfoutput>#buildURL('cetEntryWizardComplete', passArg)#</cfoutput>">
															<div class="pic">
																<span class="icon64x64 <cfoutput>#typper#</cfoutput>"></span>
															</div>
															<div class="content">
																<h5>银行代扣</h5>
																<p class="describ">您需要在规定代扣费期间, 签署代扣协议的银行卡上保留足够的金额. 代扣成功后统一打印发票并下发所在学院.</p> 
																<p class="desc">如代扣失败, 可在规定时间现金缴费</p>
															</div>
														</a>
													</cfcase>
												</cfswitch>
												
											</div>
										</li>
									</cfloop>
								</ul>
							</div>
							
						<cfelse>
						
							<div class="systemNotice">
								<h3><span class="img icon16x16 setting"></span>数据验证失败</h3>
								<p>
									系统内部错误, 访问请求已终止.
									请注销用户后, 再次尝试刚才的操作.
								</p>
							</div>
						
					</cfif>
					
				</div>
				
			</div>
		</li>
	</ul>
</div>